﻿using NicoView.ViewModel;
using NicoView.Model;
using NicoView.Model.Service.Events;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace NicoView.View
{
    /// <summary>
    /// NicoVideoConsolWindow.xaml の相互作用ロジック
    /// </summary>
    public partial class NicoViewVideoConsoleWindow : Window
    {
        public NicoViewVideoConsoleWindow()
        {
            InitializeComponent();
        }



        public new NicoViewVideoAddConsoleViewModel DataContext
        {
            get
            {
                return (NicoViewVideoAddConsoleViewModel)base.DataContext;
            }

            set
            {
                base.DataContext = value;
            }
        }



        public static void Show(NicoVideoConsoleEventArgs args,Window baseWindow)
        {
           
            NicoViewVideoConsoleWindow window = new NicoViewVideoConsoleWindow();
            window.DataContext = new NicoViewVideoAddConsoleViewModel( args);
            window.Owner = baseWindow;
            window.Show();
            
        }

        private void AddMylistButton_Click(object sender, RoutedEventArgs e)
        {
            this.Close();
        }

        private void Videolink_Click(object sender, RoutedEventArgs e)
        {
            this.Close();
        }

        

    }
}
